Expand description
Typed Unique Identifier gives you ability to create and use identifiers bound to specified type.
Typical usage example:
use typid::ID;
struct Foo {
pub id: ID<Foo>,
}
let a = Foo { id: ID::new() };
let b = Foo { id: ID::new() };
assert_ne!(a.id, b.id);
Structsยง
- Typed Unique Identifier (uuidv4).